
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>ffmpeg学习 · 日常学习笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-footer-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="trans命令.html" />
    
    
    <link rel="prev" href="bin目录详解.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"Xiechengqi","repo":"LearningNotes","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../网络学习资源整理/">
            
                <a href="../网络学习资源整理/">
            
                    
                    网络学习资源整理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../网络学习资源整理/技术学习.html">
            
                <a href="../网络学习资源整理/技术学习.html">
            
                    
                    技术学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../网络学习资源整理/运维博客.html">
            
                <a href="../网络学习资源整理/运维博客.html">
            
                    
                    运维博客
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../网络学习资源整理/工具.html">
            
                <a href="../网络学习资源整理/工具.html">
            
                    
                    工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../网络学习资源整理/静态博客模板.html">
            
                <a href="../网络学习资源整理/静态博客模板.html">
            
                    
                    静态博客模板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../网络学习资源整理/静态网站pages服务.html">
            
                <a href="../网络学习资源整理/静态网站pages服务.html">
            
                    
                    静态网站pages服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../网络学习资源整理/静态pages的CI和CD.html">
            
                <a href="../网络学习资源整理/静态pages的CI和CD.html">
            
                    
                    静态pages的CI和CD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../网络学习资源整理/Hugo学习.html">
            
                <a href="../网络学习资源整理/Hugo学习.html">
            
                    
                    Hugo学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../心灵鸡汤/">
            
                <a href="../心灵鸡汤/">
            
                    
                    心灵鸡汤
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../心灵鸡汤/心灵鸡汤.html">
            
                <a href="../心灵鸡汤/心灵鸡汤.html">
            
                    
                    语录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="./">
            
                <a href="./">
            
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Linux常用命令.html">
            
                <a href="Linux常用命令.html">
            
                    
                    Linux常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Linux小知识.html">
            
                <a href="Linux小知识.html">
            
                    
                    平时 linux 遇到的问题解决办法和扩展小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="Linux性能相关常用命令.html">
            
                <a href="Linux性能相关常用命令.html">
            
                    
                    Linux性能相关常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Linux各种安装下载慢解决方法.html">
            
                <a href="Linux各种安装下载慢解决方法.html">
            
                    
                    Linux各种安装下载慢解决方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="APT-剖析详解.html">
            
                <a href="APT-剖析详解.html">
            
                    
                    APT 原理剖析、详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="Linux主机、虚拟机和docker网络配置.html">
            
                <a href="Linux主机、虚拟机和docker网络配置.html">
            
                    
                    Linux 主机、虚拟机和docker网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="Linux文件系统学习.html">
            
                <a href="Linux文件系统学习.html">
            
                    
                    Linux文件系统学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="Linux用户和用户组管理.html">
            
                <a href="Linux用户和用户组管理.html">
            
                    
                    Linux用户和用户组管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="Linux用户增删改等学习.html">
            
                <a href="Linux用户增删改等学习.html">
            
                    
                    Linux用户增删改等学习.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="Linux程序存放目录.html">
            
                <a href="Linux程序存放目录.html">
            
                    
                    Linux程序存放目录.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="Linux编译安装软件包详解.html">
            
                <a href="Linux编译安装软件包详解.html">
            
                    
                    Linux C/C++ 软件包编译、安装原理详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="SSH详解.html">
            
                <a href="SSH详解.html">
            
                    
                    SSH 详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="Tomcat和Ngnix和Apache.html">
            
                <a href="Tomcat和Ngnix和Apache.html">
            
                    
                    Tomcat和Ngnix和Apache.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="UbuntuSoftwareInstall.html">
            
                <a href="UbuntuSoftwareInstall.html">
            
                    
                    Ubuntu 软件包安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="YAML-配置文件语言.html">
            
                <a href="YAML-配置文件语言.html">
            
                    
                    YAML 配置文件语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="bin目录详解.html">
            
                <a href="bin目录详解.html">
            
                    
                    bin目录详解.md
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.17" data-path="ffmpeg详解.html">
            
                <a href="ffmpeg详解.html">
            
                    
                    ffmpeg学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="trans命令.html">
            
                <a href="trans命令.html">
            
                    
                    trans命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.19" data-path="yum和rpm.html">
            
                <a href="yum和rpm.html">
            
                    
                    Yum 和 RPM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.20" data-path="从BashShell启动“窥探”Linux环境变量相关文件.html">
            
                <a href="从BashShell启动“窥探”Linux环境变量相关文件.html">
            
                    
                    Linux环境变量详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.21" data-path="新创建主机常用初始化配置.html">
            
                <a href="新创建主机常用初始化配置.html">
            
                    
                    新建主机常用初始化配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.22" data-path="正则表达式学习.html">
            
                <a href="正则表达式学习.html">
            
                    
                    正则表达式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.23" data-path="通过Linux开机启动项展开学习.html">
            
                <a href="通过Linux开机启动项展开学习.html">
            
                    
                    Linux开机启动项学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.24" data-path="防火墙学习.html">
            
                <a href="防火墙学习.html">
            
                    
                    防火墙学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Python/">
            
                <a href="../Python/">
            
                    
                    Python
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Python/BeautifulSoup.md">
            
                <span>
            
                    
                    Python3 BeautifulSoup 学习记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Python/Django.html">
            
                <a href="../Python/Django.html">
            
                    
                    Python Django 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../Python/IPython使用技巧.html">
            
                <a href="../Python/IPython使用技巧.html">
            
                    
                    IPython 使用技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../Python/Numpy.html">
            
                <a href="../Python/Numpy.html">
            
                    
                    Python Numpy 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../Python/Python小知识.html">
            
                <a href="../Python/Python小知识.html">
            
                    
                    Python 学习遇到的问题解决或扩展小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../Python/Python模块管理总结.html">
            
                <a href="../Python/Python模块管理总结.html">
            
                    
                    Python 模块管理总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../Python/flask学习.md">
            
                <span>
            
                    
                    Flask 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../Python/matplotlib.html">
            
                <a href="../Python/matplotlib.html">
            
                    
                    matplotlib.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../Python/re正则表达式.html">
            
                <a href="../Python/re正则表达式.html">
            
                    
                    re正则表达式.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="../Python/图形界面学习.html">
            
                <a href="../Python/图形界面学习.html">
            
                    
                    图形界面学习.md
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="../Python/常用图像库学习.html">
            
                <a href="../Python/常用图像库学习.html">
            
                    
                    Python3 常用图像库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="../Python/进阶学习.html">
            
                <a href="../Python/进阶学习.html">
            
                    
                    Python3 进阶学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Shell/">
            
                <a href="../Shell/">
            
                    
                    Shell
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Shell/shell小知识.html">
            
                <a href="../Shell/shell小知识.html">
            
                    
                    Shell小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Shell/Shell奇淫技巧.html">
            
                <a href="../Shell/Shell奇淫技巧.html">
            
                    
                    Shell奇淫技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../Shell/Linux文本操作三大利器-grep、sed、awk.html">
            
                <a href="../Shell/Linux文本操作三大利器-grep、sed、awk.html">
            
                    
                    grep、sed、awk 详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../Shell/Shell文本处理常用工具补遗.html">
            
                <a href="../Shell/Shell文本处理常用工具补遗.html">
            
                    
                    Shell文本处理常用工具补遗
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../Shell/句子解析.html">
            
                <a href="../Shell/句子解析.html">
            
                    
                    句子解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../Shell/识别是否是root用户.html">
            
                <a href="../Shell/识别是否是root用户.html">
            
                    
                    识别是否是root用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../Shell/识别系统.html">
            
                <a href="../Shell/识别系统.html">
            
                    
                    识别系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Vim/">
            
                <a href="../Vim/">
            
                    
                    Vim
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../Vim/Vim小知识.html">
            
                <a href="../Vim/Vim小知识.html">
            
                    
                    Vim小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../Vim/Vim编辑器再学习.html">
            
                <a href="../Vim/Vim编辑器再学习.html">
            
                    
                    Vim编辑器再学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../Vim/VimScript学习笔记.html">
            
                <a href="../Vim/VimScript学习笔记.html">
            
                    
                    VimScript 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../Vim/YouCompleteMe安装.html">
            
                <a href="../Vim/YouCompleteMe安装.html">
            
                    
                    YouCompleteMe安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../Vim/vimrc示例1.html">
            
                <a href="../Vim/vimrc示例1.html">
            
                    
                    vimrc示例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../Vim/vimrc备份.html">
            
                <a href="../Vim/vimrc备份.html">
            
                    
                    vimrc备份
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../Vim/Tmux快捷键.html">
            
                <a href="../Vim/Tmux快捷键.html">
            
                    
                    Tmux快捷键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Ansible/">
            
                <a href="../Ansible/">
            
                    
                    Ansible
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Ansible/术语表.html">
            
                <a href="../Ansible/术语表.html">
            
                    
                    术语表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Ansible/Ansible必知单词.html">
            
                <a href="../Ansible/Ansible必知单词.html">
            
                    
                    Ansible 常用单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../Ansible/Ansible学习.html">
            
                <a href="../Ansible/Ansible学习.html">
            
                    
                    Ansible 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../Ansible/Ansible常用模板.html">
            
                <a href="../Ansible/Ansible常用模板.html">
            
                    
                    Ansible常用模板.md
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Docker/">
            
                <a href="../Docker/">
            
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../Docker/Docker基础学习.html">
            
                <a href="../Docker/Docker基础学习.html">
            
                    
                    Docker 基础学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Docker/Docker小知识.html">
            
                <a href="../Docker/Docker小知识.html">
            
                    
                    Docker 小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../Docker/Docker必知单词.html">
            
                <a href="../Docker/Docker必知单词.html">
            
                    
                    Docker 学习中的单词
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/git学习.html">
            
                <a href="../Git/git学习.html">
            
                    
                    Git 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/git小技巧.html">
            
                <a href="../Git/git小技巧.html">
            
                    
                    Git 小技巧
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Zabbix/">
            
                <a href="../Zabbix/">
            
                    
                    Zabbix
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Zabbix/Docker安装配置Zabbix.html">
            
                <a href="../Zabbix/Docker安装配置Zabbix.html">
            
                    
                    Docker 安装配置 Zabbix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../Zabbix/术语单词.html">
            
                <a href="../Zabbix/术语单词.html">
            
                    
                    Zabbix 中常用单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../Zabbix/重置密码.html">
            
                <a href="../Zabbix/重置密码.html">
            
                    
                    重置 Zabbix 账户密码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../KVM/">
            
                <a href="../KVM/">
            
                    
                    KVM
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../KVM/安装配置.html">
            
                <a href="../KVM/安装配置.html">
            
                    
                    常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../KVM/虚拟机网络配置.html">
            
                <a href="../KVM/虚拟机网络配置.html">
            
                    
                    Bridged 桥接模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../Mysql/">
            
                <a href="../Mysql/">
            
                    
                    Mysql
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../Mysql/Ubuntu安装Navicat.html">
            
                <a href="../Mysql/Ubuntu安装Navicat.html">
            
                    
                    Ubuntu 安装及配置 Navicat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../Mysql/忘记root密码.html">
            
                <a href="../Mysql/忘记root密码.html">
            
                    
                    如何替换已忘记的 root 密码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../Nginx/">
            
                <a href="../Nginx/">
            
                    
                    Nginx
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="../Nginx/Nginx学习笔记.html">
            
                <a href="../Nginx/Nginx学习笔记.html">
            
                    
                    Nginx 学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../NoClass/">
            
                <a href="../NoClass/">
            
                    
                    闲知
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../NoClass/容易读错的IT术语.html">
            
                <a href="../NoClass/容易读错的IT术语.html">
            
                    
                    容易读错的IT术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../NoClass/Linux-electron-tutorial.html">
            
                <a href="../NoClass/Linux-electron-tutorial.html">
            
                    
                    Linux electron 学习记录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../NoClass/MarkdownSkills.html">
            
                <a href="../NoClass/MarkdownSkills.html">
            
                    
                    记录 Markdown 的各种小技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../NoClass/RaspeberryPi.html">
            
                <a href="../NoClass/RaspeberryPi.html">
            
                    
                    使用树莓派 3B 遇到的问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="../NoClass/华为国产手机芯片SoC.html">
            
                <a href="../NoClass/华为国产手机芯片SoC.html">
            
                    
                    华为国产手机芯片SoC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="../NoClass/图片格式详解及其对比.html">
            
                <a href="../NoClass/图片格式详解及其对比.html">
            
                    
                    图片格式详解及其对比
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="../NoClass/计算机小知识.html">
            
                <a href="../NoClass/计算机小知识.html">
            
                    
                    记录一些计算机的小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.8" data-path="../NoClass/诗词.html">
            
                <a href="../NoClass/诗词.html">
            
                    
                    诗词
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../OS/">
            
                <a href="../OS/">
            
                    
                    OS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="../OS/学习笔记.html">
            
                <a href="../OS/学习笔记.html">
            
                    
                    操作系统学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.2" data-path="../OS/术语单词.html">
            
                <a href="../OS/术语单词.html">
            
                    
                    OS 专业词语解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.3" data-path="../OS/SoCCPU.html">
            
                <a href="../OS/SoCCPU.html">
            
                    
                    SoC 与 CPU
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Tomcat/">
            
                <a href="../Tomcat/">
            
                    
                    Tomcat
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Tomcat/Tomcat 学习.html">
            
                <a href="../Tomcat/Tomcat 学习.html">
            
                    
                    Tomcat 学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Tomcat/Tomcat学习.html">
            
                <a href="../Tomcat/Tomcat学习.html">
            
                    
                    Tomcat 学习
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../VPS/">
            
                <a href="../VPS/">
            
                    
                    VPS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="../VPS/AWS_lightsail.html">
            
                <a href="../VPS/AWS_lightsail.html">
            
                    
                    AWS LightSail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.2" data-path="../VPS/GCP_VM实例创建和基本配置.html">
            
                <a href="../VPS/GCP_VM实例创建和基本配置.html">
            
                    
                    GCP VM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.3" data-path="../VPS/ECS和VPS等等.html">
            
                <a href="../VPS/ECS和VPS等等.html">
            
                    
                    ECS和VPS
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../ComputerComposition/">
            
                <a href="../ComputerComposition/">
            
                    
                    ComputerComposition
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.19.1" data-path="../ComputerComposition/学习笔记.html">
            
                <a href="../ComputerComposition/学习笔记.html">
            
                    
                    计算机组成原理学习笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../ComputerNetwork/">
            
                <a href="../ComputerNetwork/">
            
                    
                    ComputerNetwork
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.20.1" data-path="../ComputerNetwork/ProWords.html">
            
                <a href="../ComputerNetwork/ProWords.html">
            
                    
                    术语单词
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.2" data-path="../ComputerNetwork/学习笔记.html">
            
                <a href="../ComputerNetwork/学习笔记.html">
            
                    
                    计算机网络学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.3" data-path="../ComputerNetwork/小知识.html">
            
                <a href="../ComputerNetwork/小知识.html">
            
                    
                    学习计算机网络中的小知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.20.4" data-path="../NoClass/浏览器架构简析.md">
            
                <span>
            
                    
                    浏览器架构简析
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../毕业论文/">
            
                <a href="../毕业论文/">
            
                    
                    毕业论文
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.21.1" data-path="../毕业论文/开题报告.html">
            
                <a href="../毕业论文/开题报告.html">
            
                    
                    开题报告
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >ffmpeg学习</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="ffmpeg---github"><a name="ffmpeg---github" class="plugin-anchor" href="#ffmpeg---github"><i class="fa fa-link" aria-hidden="true"></i></a>FFmpeg - <a href="https://github.com/FFmpeg/FFmpeg" target="_blank">[github]</a></h1>
<ul>
<li>FFmpeg &#x662F;&#x5904;&#x7406;&#x591A;&#x5A92;&#x4F53;&#x5185;&#x5BB9;&#xFF08; &#x5982;&#x97F3;&#x9891;&#xFF0C;&#x89C6;&#x9891;&#xFF0C;&#x5B57;&#x5E55;&#x548C;&#x76F8;&#x5173;&#x5143;&#x6570;&#x636E; &#xFF09;&#x7684;&#x5E93;&#x548C;&#x5DE5;&#x5177;&#x7684;&#x96C6;&#x5408;</li>
</ul>
<h2 id="&#x5E93;"><a name="&#x5E93;" class="plugin-anchor" href="#&#x5E93;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E93;</h2>
<ul>
<li>libavcodec &#x63D0;&#x4F9B;&#x66F4;&#x5E7F;&#x6CDB;&#x7684;&#x7F16;&#x89E3;&#x7801;&#x5668;&#x7684;&#x5B9E;&#x73B0;&#x3002;</li>
<li>libavformat &#x5B9E;&#x73B0;&#x6D41;&#x534F;&#x8BAE;&#xFF0C;&#x5BB9;&#x5668;&#x683C;&#x5F0F;&#x548C;&#x57FA;&#x672C; I / O &#x8BBF;&#x95EE;&#x3002;</li>
<li>libavutil &#x5305;&#x62EC;&#x57AB;&#x5708;&#xFF0C;&#x89E3;&#x538B;&#x7F29;&#x5668;&#x548C;&#x5176;&#x4ED6;&#x5B9E;&#x7528;&#x529F;&#x80FD;&#x3002;</li>
<li>libavfilter &#x63D0;&#x4F9B;&#x901A;&#x8FC7;&#x8FC7;&#x6EE4;&#x5668;&#x94FE;&#x6539;&#x53D8;&#x89E3;&#x7801;&#x7684;&#x97F3;&#x9891;&#x548C;&#x89C6;&#x9891;&#x7684;&#x65B9;&#x6CD5;&#x3002;</li>
<li>libavdevice &#x63D0;&#x4F9B;&#x8BBF;&#x95EE;&#x6355;&#x83B7;&#x548C;&#x56DE;&#x653E;&#x8BBE;&#x5907;&#x7684;&#x62BD;&#x8C61;&#x3002;</li>
<li>libswresample &#x5B9E;&#x73B0;&#x97F3;&#x9891;&#x6DF7;&#x5408;&#x548C;&#x91CD;&#x91C7;&#x6837;&#x4F8B;&#x7A0B;&#x3002;</li>
<li>libswscale &#x5B9E;&#x73B0;&#x989C;&#x8272;&#x8F6C;&#x6362;&#x548C;&#x7F29;&#x653E;&#x4F8B;&#x7A0B;</li>
</ul>
<h2 id="&#x5DE5;&#x5177;"><a name="&#x5DE5;&#x5177;" class="plugin-anchor" href="#&#x5DE5;&#x5177;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5DE5;&#x5177;</h2>
<ul>
<li>ffmpeg</li>
<li>ffplay</li>
<li>ffprobe</li>
</ul>
<h2 id="ffmpeg"><a name="ffmpeg" class="plugin-anchor" href="#ffmpeg"><i class="fa fa-link" aria-hidden="true"></i></a>ffmpeg</h2>
<ul>
<li>ffmpeg &#x662F;&#x4E00;&#x4E2A;&#x975E;&#x5E38;&#x5F3A;&#x5927;&#x7684;&#x5DE5;&#x5177;&#xFF0C;&#x5B83;&#x53EF;&#x4EE5;&#x8F6C;&#x6362;&#x4EFB;&#x4F55;&#x683C;&#x5F0F;&#x7684;&#x5A92;&#x4F53;&#x6587;&#x4EF6;&#xFF0C;&#x5E76;&#x4E14;&#x8FD8;&#x53EF;&#x4EE5;&#x7528;&#x81EA;&#x5DF1;&#x7684; AudioFilter &#x4EE5;&#x53CA; VideoFilter &#x8FDB;&#x884C;&#x5904;&#x7406;&#x548C;&#x7F16;&#x8F91;&#x3002;&#x6709;&#x4E86;&#x5B83;&#xFF0C;&#x6211;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x5BF9;&#x5A92;&#x4F53;&#x6587;&#x4EF6;&#x505A;&#x5F88;&#x591A;&#x6211;&#x4EEC;&#x60F3;&#x505A;&#x7684;&#x4E8B;&#x60C5;&#x4E86;</li>
</ul>
<h3 id="&#x9884;&#x5907;&#x77E5;&#x8BC6;"><a name="&#x9884;&#x5907;&#x77E5;&#x8BC6;" class="plugin-anchor" href="#&#x9884;&#x5907;&#x77E5;&#x8BC6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9884;&#x5907;&#x77E5;&#x8BC6;</h3>
<ul>
<li>codec - &#x7F16;&#x7801;&#x89E3;&#x7801;&#x5668;</li>
</ul>
<blockquote>
<ul>
<li>A codec is a device or computer program for encoding or decoding a digital data stream or signal. Codec is a portmanteau of coder-decoder.</li>
<li>A codec encodes a data stream or a signal for transmission and storage, possibly in encrypted form, and the decoder function reverses the encoding for playback or editing. Codecs are used in videoconferencing, streaming media, and video editing applications.</li>
</ul>
</blockquote>
<h3 id="&#x4F7F;&#x7528;-ffmpeg-&#x89C6;&#x9891;&#x5206;&#x5272;"><a name="&#x4F7F;&#x7528;-ffmpeg-&#x89C6;&#x9891;&#x5206;&#x5272;" class="plugin-anchor" href="#&#x4F7F;&#x7528;-ffmpeg-&#x89C6;&#x9891;&#x5206;&#x5272;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528; FFmpeg &#x89C6;&#x9891;&#x5206;&#x5272;</h3>
<pre><code class="lang-shell"># &#x8FD9;&#x4E2A;&#x4F8B;&#x5B50;&#x662F;&#x5C06; test.mp4 &#x89C6;&#x9891;&#x7684;&#x524D; 3 &#x79D2;&#xFF0C;&#x91CD;&#x65B0;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x65B0;&#x89C6;&#x9891;
ffmpeg -ss 00:00:00 -t 00:00:03 -y -i test.mp4 -vcodec copy -acodec copy test1.mp4  

[&#x53C2;&#x6570;]
-ss &#x5F00;&#x59CB;&#x65F6;&#x95F4;&#xFF0C;&#x5982;&#xFF1A; 00:00:00&#xFF0C;&#x8868;&#x793A;&#x4ECE; 0 &#x79D2;&#x5F00;&#x59CB;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5199;&#x6210; 00:00:0
-t &#x65F6;&#x957F;&#xFF0C;&#x5982;&#xFF1A; 00:00:03&#xFF0C;&#x8868;&#x793A;&#x622A;&#x53D6; 3 &#x79D2;&#x957F;&#x7684;&#x89C6;&#x9891;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5199;&#x6210; 00:00:3
-y &#x5982;&#x679C;&#x6587;&#x4EF6;&#x5DF2;&#x5B58;&#x5728;&#x5F3A;&#x5236;&#x66FF;&#x6362;
-i &#x8F93;&#x5165;&#xFF0C;&#x540E;&#x9762;&#x662F;&#x7A7A;&#x683C;&#xFF0C;&#x7D27;&#x8DDF;&#x7740;&#x5C31;&#x662F;&#x8F93;&#x5165;&#x89C6;&#x9891;&#x6587;&#x4EF6;
-vcodec [copy] &#x89C6;&#x9891;&#x7684;&#x7F16;&#x7801;&#x683C;&#x5F0F;&#xFF0C;copy &#x8868;&#x793A;&#x4FDD;&#x6301;&#x89C6;&#x9891;&#x7F16;&#x7801;&#x683C;&#x5F0F;&#x4E0D;&#x53D8; 
-acodec [copy] &#x97F3;&#x9891;&#x7684;&#x7F16;&#x7801;&#x683C;&#x5F0F;&#xFF0C;copy &#x8868;&#x793A;&#x4FDD;&#x6301;&#x97F3;&#x9891;&#x7F16;&#x7801;&#x683C;&#x5F0F;&#x4E0D;&#x53D8;
</code></pre>
<h3 id="&#x4F7F;&#x7528;-ffmpeg-&#x4ECE;&#x89C6;&#x9891;&#x4E2D;&#x5236;&#x4F5C;-gif-&#x56FE;"><a name="&#x4F7F;&#x7528;-ffmpeg-&#x4ECE;&#x89C6;&#x9891;&#x4E2D;&#x5236;&#x4F5C;-gif-&#x56FE;" class="plugin-anchor" href="#&#x4F7F;&#x7528;-ffmpeg-&#x4ECE;&#x89C6;&#x9891;&#x4E2D;&#x5236;&#x4F5C;-gif-&#x56FE;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528; FFmpeg &#x4ECE;&#x89C6;&#x9891;&#x4E2D;&#x5236;&#x4F5C; GIF &#x56FE;</h3>
<h3 id="&#x4F7F;&#x7528;-ffmpeg-&#x8F6C;&#x6362;-flv-&#x5230;-mp4"><a name="&#x4F7F;&#x7528;-ffmpeg-&#x8F6C;&#x6362;-flv-&#x5230;-mp4" class="plugin-anchor" href="#&#x4F7F;&#x7528;-ffmpeg-&#x8F6C;&#x6362;-flv-&#x5230;-mp4"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528; FFmpeg &#x8F6C;&#x6362; flv &#x5230; mp4</h3>
<pre><code class="lang-shell">ffmpeg -i input.flv -vcodec copy -acodec copy output.mp4
</code></pre>
<h3 id="&#x4F7F;&#x7528;-ffmpeg-&#x7ED9;&#x89C6;&#x9891;&#x6DFB;&#x52A0;&#x6C34;&#x5370;"><a name="&#x4F7F;&#x7528;-ffmpeg-&#x7ED9;&#x89C6;&#x9891;&#x6DFB;&#x52A0;&#x6C34;&#x5370;" class="plugin-anchor" href="#&#x4F7F;&#x7528;-ffmpeg-&#x7ED9;&#x89C6;&#x9891;&#x6DFB;&#x52A0;&#x6C34;&#x5370;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528; FFmpeg &#x7ED9;&#x89C6;&#x9891;&#x6DFB;&#x52A0;&#x6C34;&#x5370;</h3>
<pre><code class="lang-shell"># &#x7ED9;&#x89C6;&#x9891;&#x6DFB;&#x52A0;&#x56FE;&#x7247;&#x6C34;&#x5370;&#xFF0C;&#x6C34;&#x5370;&#x5C45;&#x4E2D;&#x663E;&#x793A;
ffmpeg -i input.mp4 -i watermark.png -filter_complex overlay=&quot;(main_w/2)-(overlay_w/2):(main_h/2)-(overlay_h)/2&quot; output.mp4
# &#x7ED9;&#x89C6;&#x9891;&#x6DFB;&#x52A0; GIF &#x52A8;&#x6001;&#x56FE;&#x6C34;&#x5370;&#xFF0C;&#x6C34;&#x5370;&#x5C45;&#x4E2D;&#x663E;&#x793A;
ffmpeg -i input.mp4 -i watermark.gif -filter_complex overlay=&quot;(main_w/2)-(overlay_w/2):(main_h/2)-(overlay_h)/2&quot; output.mp4
# &#x7ED9;&#x89C6;&#x9891;&#x6DFB;&#x52A0;&#x6587;&#x5B57;&#x6C34;&#x5370;&#xFF0C;&#x6C34;&#x5370;&#x5DE6;&#x4E0A;&#x89D2;&#x663E;&#x793A;
ffmpeg -i input.mp4 -vf &quot;drawtext=/usr/share/fonts/truetype/source-code-pro/SourceCodePro-BlackIt.ttf:text=&apos;&#x89C6;&#x9891;&#x6DFB;&#x52A0;&#x6587;&#x5B57;&#x6C34;&#x5370;&apos;:x=10:y=10:fontsize=24:fontcolor=yellow:shadowy=2&quot; output.mp4

[&#x53C2;&#x6570;]
overlay=&quot;(main_w/2)-(overlay_w/2):(main_h/2)-(overlay_h)/2&quot; &#x8BBE;&#x7F6E;&#x6C34;&#x5370;&#x7684;&#x4F4D;&#x7F6E;&#xFF0C;&#x5C45;&#x4E2D;&#x663E;&#x793A;
</code></pre>
<p>&#x53C2;&#x6570; overlay &#x8BE6;&#x89E3;</p>
<ul>
<li>overlay &#x8BBE;&#x7F6E;&#x4F4D;&#x7F6E;&#x683C;&#x5F0F;&#xFF1A;`overlay=&quot;x:y[:1]&quot;<blockquote>
<ul>
<li>x:y &#x4EE5;&#x5DE6;&#x4E0A;&#x7684;&#x89C6;&#x9891;&#x754C;&#x9762;&#x9876;&#x70B9;&#x4E3A;&#x539F;&#x70B9;&#xFF0C;&#x5411;&#x53F3;&#x4E3A; x &#x8F74;&#x6B63;&#x65B9;&#x5411;&#xFF0C;&#x5411;&#x4E0B;&#x4E3A; y &#x8F74;&#x6B63;&#x65B9;&#x5411;&#x7684;&#x76F4;&#x89D2;&#x5750;&#x6807;&#x7CFB;&#x4E2D;&#x4E00;&#x70B9;&#x7684;&#x6A2A;&#x7EB5;&#x5750;&#x6807;</li>
<li>:1  &#x8868;&#x793A;&#x652F;&#x6301;&#x900F;&#x660E;&#x6C34;&#x5370;
overlay &#x53EF;&#x9009;&#x53C2;&#x6570; | &#x8BF4;&#x660E; 
------ | ------ 
main_w | &#x89C6;&#x9891;&#x5355;&#x5E27;&#x56FE;&#x50CF;&#x5BBD;&#x5EA6;
main_h | &#x89C6;&#x9891;&#x5355;&#x5E27;&#x56FE;&#x50CF;&#x9AD8;&#x5EA6;
overlay_w | &#x6C34;&#x5370;&#x56FE;&#x7247;&#x7684;&#x5BBD;&#x5EA6;
overlay_h | &#x6C34;&#x5370;&#x56FE;&#x7247;&#x7684;&#x9AD8;&#x5EA6;
(main_w/2)-(overlay_w/2):(main_h/2)-(overlay_h)/2 | &#x76F8;&#x5BF9;&#x4F4D;&#x7F6E;&#xFF08;&#x5C45;&#x4E2D;&#x663E;&#x793A;&#xFF09;
10:10 | &#x7EDD;&#x5BF9;&#x4F4D;&#x7F6E;&#xFF08;&#x8DDD;&#x79BB;&#x4E0A;&#x8FB9;&#x548C;&#x5DE6;&#x8FB9;&#x90FD;&#x662F; 10 &#x50CF;&#x7D20;&#xFF09;<br>main_w-overlay_w-10:10 | &#x7EDD;&#x5BF9;&#x4F4D;&#x7F6E;&#xFF08;&#x8DDD;&#x79BB;&#x4E0A;&#x8FB9;&#x548C;&#x53F3;&#x8FB9;&#x90FD;&#x662F; 10 &#x50CF;&#x7D20;&#xFF09;</li>
</ul>
</blockquote>
</li>
</ul>
<blockquote>
<ul>
<li>&#x6C34;&#x5370;&#x56FE;&#x7247;&#x7684;&#x5C3A;&#x5BF8;&#x4E0D;&#x80FD;&#x5927;&#x4E8E;&#x89C6;&#x9891;&#x5355;&#x5E27;&#x56FE;&#x50CF;&#x5C3A;&#x5BF8;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x51FA;&#x9519;</li>
</ul>
</blockquote>
<h3 id="&#x4F7F;&#x7528;-ffmpeg-&#x63D0;&#x53D6;&#x89C6;&#x9891;&#x4E2D;&#x7684;&#x97F3;&#x9891;&#x6587;&#x4EF6;-aac&#x3001;mp3-&#x7B49;-"><a name="&#x4F7F;&#x7528;-ffmpeg-&#x63D0;&#x53D6;&#x89C6;&#x9891;&#x4E2D;&#x7684;&#x97F3;&#x9891;&#x6587;&#x4EF6;-aac&#x3001;mp3-&#x7B49;-" class="plugin-anchor" href="#&#x4F7F;&#x7528;-ffmpeg-&#x63D0;&#x53D6;&#x89C6;&#x9891;&#x4E2D;&#x7684;&#x97F3;&#x9891;&#x6587;&#x4EF6;-aac&#x3001;mp3-&#x7B49;-"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528; FFmpeg &#x63D0;&#x53D6;&#x89C6;&#x9891;&#x4E2D;&#x7684;&#x97F3;&#x9891;&#x6587;&#x4EF6;( aac&#x3001;mp3 &#x7B49; )</h3>
<pre><code class="lang-shell"># &#x4E00;&#x3001;&#x63D0;&#x53D6;&#x7684;&#x97F3;&#x9891;&#x683C;&#x5F0F;&#x662F; mp3 &#x7684;&#x60C5;&#x51B5;
# &#x5148;&#x67E5;&#x770B;&#x81EA;&#x5DF1;&#x7684; ffmpeg &#x7684;&#x5E93;&#x4F9D;&#x8D56;&#x6709;&#x6CA1;&#x6709;&#x7F16;&#x7801; mp3 &#x7684;&#x5E93;&#xFF08;&#x901A;&#x5E38;&#x662F; libmp3lame&#xFF0C;&#x800C;&#x4E14;&#x4E00;&#x822C;&#x5B89;&#x88C5; ffmpeg &#x65F6;&#x53EA;&#x6709;&#x89E3;&#x7801; mp3 &#x7684;&#x5E93;&#xFF09;
ffmpeg -codecs | grep mp
# &#x63D0;&#x53D6;&#x89C6;&#x9891;&#x4E2D;&#x97F3;&#xFF0C;&#x97F3;&#x9891;&#x683C;&#x5F0F;&#x4E3A; mp3
ffmpeg -i input.mp4 -f mp3 -vn output.mp3
# &#x6216;
ffmpeg -i input.mp4 -acodec libmp3lame -vn output.mp3
[&#x53C2;&#x6570;]
-vn &#x7981;&#x6B62;&#x89C6;&#x9891;&#x8F93;&#x51FA; 
-f &#x8F93;&#x51FA;&#x7F16;&#x7801;&#x683C;&#x5F0F;
-acodec &#x97F3;&#x9891;&#x7F16;&#x7801;&#x5668;
# &#x4E8C;&#x3001;&#x63D0;&#x53D6;&#x7684;&#x97F3;&#x9891;&#x683C;&#x5F0F;&#x662F; acc &#x7684;&#x60C5;&#x51B5;
# &#x4E00;&#x822C; acc &#x7F16;&#x7801;&#x5668;&#x9ED8;&#x8BA4;&#x5DF2;&#x7ECF;&#x88C5;&#x4E0A;
ffmpeg -i input.mp4 -c copy output.acc
</code></pre>
<h3 id="&#x4F7F;&#x7528;-ffmpeg-&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;&#x6216;&#x591A;&#x4E2A;&#x97F3;&#x9891;"><a name="&#x4F7F;&#x7528;-ffmpeg-&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;&#x6216;&#x591A;&#x4E2A;&#x97F3;&#x9891;" class="plugin-anchor" href="#&#x4F7F;&#x7528;-ffmpeg-&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;&#x6216;&#x591A;&#x4E2A;&#x97F3;&#x9891;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528; FFmpeg &#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;&#x6216;&#x591A;&#x4E2A;&#x97F3;&#x9891;</h3>
<h4 id="&#x4E00;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x97F3;&#x9891;"><a name="&#x4E00;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x97F3;&#x9891;" class="plugin-anchor" href="#&#x4E00;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x97F3;&#x9891;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E00;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x97F3;&#x9891;</h4>
<pre><code class="lang-shell">ffmpeg -i input1.mp3 -i input2.mp4 output.mp3
</code></pre>
<h4 id="&#x4E8C;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;"><a name="&#x4E8C;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;" class="plugin-anchor" href="#&#x4E8C;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E8C;&#x3001;&#x5408;&#x5E76;&#x591A;&#x4E2A;&#x89C6;&#x9891;</h4>
<blockquote>
<p><a href="https://blog.csdn.net/doublefi123/article/details/47276739" target="_blank">&#x66F4;&#x591A;&#x65B9;&#x6CD5;</a></p>
</blockquote>
<p><strong>FFmpeg concat &#x5206;&#x79BB;&#x5668;&#xFF08;&#x9700;&#x8981; FFmpeg 1.1 &#x4EE5;&#x4E0A;&#x7248;&#x672C;&#xFF0C;&#x6700;&#x901A;&#x7528;&#x65B9;&#x6CD5;&#xFF09;</strong></p>
<ol>
<li>&#x5148;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x6587;&#x672C;&#x6587;&#x4EF6;(.txt)<pre><code># &#x4F8B;&#x5982;&#x6587;&#x4EF6; inputfilelist.txt &#x5185;&#x5BB9;
file &apos;input1.mp4&apos;
file &apos;input2.mp4&apos;
file &apos;input3.mp4&apos;
</code></pre><blockquote>
<p>&#x6587;&#x4EF6;&#x65B0;&#x5EFA;&#x5728;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x5F85;&#x5408;&#x5E76;&#x7684;&#x89C6;&#x9891;&#x6587;&#x4EF6;&#x540D;&#xFF0C;&#x6CE8;&#x610F;&#x683C;&#x5F0F;&#xFF1A;file &apos;xxx&apos;</p>
</blockquote>
</li>
<li>&#x7136;&#x540E;&#x6267;&#x884C;&#x547D;&#x4EE4;<pre><code class="lang-shell">ffmpeg -f concat -i inputfilelist.txt -c copy output.mp4
</code></pre>
<h3 id="&#x4F7F;&#x7528;-ffmpeg-&#x5C06;&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x96C6;&#x6210;&#x5230;&#x89C6;&#x9891;&#x6587;&#x4EF6;"><a name="&#x4F7F;&#x7528;-ffmpeg-&#x5C06;&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x96C6;&#x6210;&#x5230;&#x89C6;&#x9891;&#x6587;&#x4EF6;" class="plugin-anchor" href="#&#x4F7F;&#x7528;-ffmpeg-&#x5C06;&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x96C6;&#x6210;&#x5230;&#x89C6;&#x9891;&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F7F;&#x7528; FFmpeg &#x5C06;&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x96C6;&#x6210;&#x5230;&#x89C6;&#x9891;&#x6587;&#x4EF6;</h3>
</li>
</ol>
<h4 id="&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x683C;&#x5F0F;&#x95F4;&#x8F6C;&#x6362;"><a name="&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x683C;&#x5F0F;&#x95F4;&#x8F6C;&#x6362;" class="plugin-anchor" href="#&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x683C;&#x5F0F;&#x95F4;&#x8F6C;&#x6362;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x683C;&#x5F0F;&#x95F4;&#x8F6C;&#x6362;</h4>
<pre><code class="lang-shell"># &#x5C06; .srt &#x6587;&#x4EF6;&#x8F6C;&#x6362;&#x4E3A; .ass &#x6587;&#x4EF6;
ffmpeg -i subtitle.srt subtitle.ass
# &#x5C06; .ass &#x6587;&#x4EF6;&#x8F6C;&#x6362;&#x4E3A; .srt &#x6587;&#x4EF6;
ffmpeg -i subtitle.ass subtitle.srt
</code></pre>
<ul>
<li>&#x7531;&#x4E8E; mp4 &#x5BB9;&#x5668;&#xFF0C;&#x4E0D;&#x50CF; mkv &#x7B49;&#x5BB9;&#x5668;&#x6709;&#x81EA;&#x5DF1;&#x7684;&#x5B57;&#x5E55;&#x6D41;</li>
<li>mkv &#x8FD9;&#x79CD;&#x5BB9;&#x5668;&#x7684;&#x89C6;&#x9891;&#x683C;&#x5F0F;&#x4E2D;&#xFF0C;&#x4F1A;&#x5E26;&#x6709;&#x4E00;&#x4E2A;&#x5B57;&#x5E55;&#x6D41;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x64AD;&#x653E;&#x4E2D;&#xFF0C;&#x63A7;&#x5236;&#x5B57;&#x5E55;&#x7684;&#x663E;&#x793A;&#x4E0E;&#x5207;&#x6362;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5DE5;&#x5177;&#x6216;&#x547D;&#x4EE4;&#xFF0C;&#x5C06;&#x5B57;&#x5E55;&#x4ECE;&#x89C6;&#x9891;&#x4E2D;&#x5206;&#x79BB;&#x51FA;&#x6765;</li>
<li>mp4 &#x683C;&#x5F0F;&#x7684;&#x5BB9;&#x5668;&#xFF0C;&#x662F;&#x4E0D;&#x5E26;&#x5B57;&#x5E55;&#x6D41;&#x7684;&#xFF0C;&#x6240;&#x4EE5;&#x5982;&#x679C;&#x8981;&#x5C06;&#x5B57;&#x5E55;&#x6DFB;&#x52A0;&#x8FDB;&#x53BB;&#xFF0C;&#x5C31;&#x9700;&#x8981;&#x5C06;&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#x70E7;&#x8FDB;&#x89C6;&#x9891;&#x4E2D;&#x53BB;&#x3002;&#x70E7;&#x8FDB;&#x53BB;&#x7684;&#x89C6;&#x9891;&#xFF0C;&#x4E0D;&#x80FD;&#x518D;&#x5206;&#x79BB;&#x51FA;&#x6765;&#xFF0C;&#x4E5F;&#x4E0D;&#x80FD;&#x63A7;&#x5236;&#x5B57;&#x5E55;&#x7684;&#x663E;&#x793A;&#x4E0E;&#x5426;</li>
</ul>
<pre><code class="lang-shell"># &#x6BD4;&#x5982;&#x5C06; input.srt &#x70E7;&#x5165; input.mp4 &#x4E2D;&#xFF0C;&#x5C06;&#x5408;&#x5E76;&#x7684;&#x89C6;&#x9891;&#x62F7;&#x5230; output.mp4
# input.srt&#x3001;input.mp4&#x3001;output.mp4&#x90FD;&#x662F;&#x76F8;&#x5BF9;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x4E0B; 
ffmpeg -i input.mp4 -vf subtitles=input.srt output.srt

[&#x53C2;&#x6570;]
-y :&#x8986;&#x76D6;&#x540C;&#x540D;&#x7684;&#x8F93;&#x51FA;&#x6587;&#x4EF6; 
-i  &#xFF1A;&#x8D44;&#x6E90;&#x6587;&#x4EF6;
-vf&#xFF1A;&#x4E00;&#x822C;&#x7528;&#x4E8E;&#x8BBE;&#x7F6E;&#x89C6;&#x9891;&#x7684;&#x8FC7;&#x6EE4;&#x5668; ( set video filters )
subtitles= &#xFF1A;&#x540E;&#x9762;&#x8DDF;&#x5B57;&#x5E55;&#x6587;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x662F; srt&#xFF0C;ass
</code></pre>
<h2 id="ffplay"><a name="ffplay" class="plugin-anchor" href="#ffplay"><i class="fa fa-link" aria-hidden="true"></i></a>ffplay</h2>
<ul>
<li>ffplay &#x662F;&#x4EE5; FFmpeg &#x6846;&#x67B6;&#x4E3A;&#x57FA;&#x7840;&#xFF0C;&#x5916;&#x52A0;&#x6E32;&#x67D3;&#x97F3;&#x89C6;&#x9891;&#x7684;&#x5E93; libSDL &#x6784;&#x5EFA;&#x7684;&#x5A92;&#x4F53;&#x6587;&#x4EF6;&#x64AD;&#x653E;&#x5668;</li>
</ul>
<h3 id="&#x683C;&#x5F0F;---ffplay-&#x9009;&#x9879;-&#x8F93;&#x5165;&#x6587;&#x4EF6;"><a name="&#x683C;&#x5F0F;---ffplay-&#x9009;&#x9879;-&#x8F93;&#x5165;&#x6587;&#x4EF6;" class="plugin-anchor" href="#&#x683C;&#x5F0F;---ffplay-&#x9009;&#x9879;-&#x8F93;&#x5165;&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x683C;&#x5F0F; - <code>ffplay [&#x9009;&#x9879;] [&apos;&#x8F93;&#x5165;&#x6587;&#x4EF6;&apos;]</code></h3>
<h3 id="&#x4E3B;&#x8981;&#x9009;&#x9879;"><a name="&#x4E3B;&#x8981;&#x9009;&#x9879;" class="plugin-anchor" href="#&#x4E3B;&#x8981;&#x9009;&#x9879;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E3B;&#x8981;&#x9009;&#x9879;</h3>
<pre><code>&apos;-x width&apos;        &#x5F3A;&#x5236;&#x4EE5; &quot;width&quot; &#x5BBD;&#x5EA6;&#x663E;&#x793A;
&apos;-y height&apos;       &#x5F3A;&#x5236;&#x4EE5; &quot;height&quot; &#x9AD8;&#x5EA6;&#x663E;&#x793A;
&apos;-an&apos;             &#x7981;&#x6B62;&#x97F3;&#x9891;
&apos;-vn&apos;             &#x7981;&#x6B62;&#x89C6;&#x9891;
&apos;-ss pos&apos;         &#x8DF3;&#x8F6C;&#x5230;&#x6307;&#x5B9A;&#x7684;&#x4F4D;&#x7F6E;(&#x79D2;)
&apos;-t duration&apos;     &#x64AD;&#x653E; &quot;duration&quot; &#x79D2;&#x97F3;/&#x89C6;&#x9891;
&apos;-bytes&apos;          &#x6309;&#x5B57;&#x8282;&#x8DF3;&#x8F6C;
&apos;-nodisp&apos;         &#x7981;&#x6B62;&#x56FE;&#x50CF;&#x663E;&#x793A;(&#x53EA;&#x8F93;&#x51FA;&#x97F3;&#x9891;)
&apos;-f fmt&apos;          &#x5F3A;&#x5236;&#x4F7F;&#x7528; &quot;fmt&quot; &#x683C;&#x5F0F;
&apos;-window_title title&apos;  &#x8BBE;&#x7F6E;&#x7A97;&#x53E3;&#x6807;&#x9898;(&#x9ED8;&#x8BA4;&#x4E3A;&#x8F93;&#x5165;&#x6587;&#x4EF6;&#x540D;)
&apos;-loop number&apos;    &#x5FAA;&#x73AF;&#x64AD;&#x653E; &quot;number&quot; &#x6B21;(0&#x5C06;&#x4E00;&#x76F4;&#x5FAA;&#x73AF;)
&apos;-showmode mode&apos;  &#x8BBE;&#x7F6E;&#x663E;&#x793A;&#x6A21;&#x5F0F;

&#x53EF;&#x9009;&#x7684; mode
&apos;0, video&apos;    &#x663E;&#x793A;&#x89C6;&#x9891;
&apos;1, waves&apos;    &#x663E;&#x793A;&#x97F3;&#x9891;&#x6CE2;&#x5F62;
&apos;2, rdft&apos;     &#x663E;&#x793A;&#x97F3;&#x9891;&#x9891;&#x5E26;
&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; &apos;video&apos;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x64AD;&#x653E;&#x8FDB;&#x884C;&#x65F6;&#xFF0C;&#x6309; &quot;w&quot; &#x952E;&#x5728;&#x8FD9;&#x51E0;&#x79CD;&#x6A21;&#x5F0F;&#x95F4;&#x5207;&#x6362;
&apos;-i input_file&apos;   &#x6307;&#x5B9A;&#x8F93;&#x5165;&#x6587;&#x4EF6;
</code></pre><h3 id="&#x4E00;&#x4E9B;&#x9AD8;&#x7EA7;&#x9009;&#x9879;"><a name="&#x4E00;&#x4E9B;&#x9AD8;&#x7EA7;&#x9009;&#x9879;" class="plugin-anchor" href="#&#x4E00;&#x4E9B;&#x9AD8;&#x7EA7;&#x9009;&#x9879;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E00;&#x4E9B;&#x9AD8;&#x7EA7;&#x9009;&#x9879;</h3>
<pre><code>&apos;-sync type&apos;          &#x8BBE;&#x7F6E;&#x4E3B;&#x65F6;&#x949F;&#x4E3A;&#x97F3;&#x9891;&#x3001;&#x89C6;&#x9891;&#x3001;&#x6216;&#x8005;&#x5916;&#x90E8;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A;&#x97F3;&#x9891;&#x3002;&#x4E3B;&#x65F6;&#x949F;&#x7528;&#x6765;&#x8FDB;&#x884C;&#x97F3;&#x89C6;&#x9891;&#x540C;&#x6B65;
&apos;-threads count&apos;      &#x8BBE;&#x7F6E;&#x7EBF;&#x7A0B;&#x4E2A;&#x6570;
&apos;-autoexit&apos;           &#x64AD;&#x653E;&#x5B8C;&#x6210;&#x540E;&#x81EA;&#x52A8;&#x9000;&#x51FA;
&apos;-exitonkeydown&apos;      &#x4EFB;&#x610F;&#x952E;&#x6309;&#x4E0B;&#x65F6;&#x9000;&#x51FA;
&apos;-exitonmousedown&apos;    &#x4EFB;&#x610F;&#x9F20;&#x6807;&#x6309;&#x952E;&#x6309;&#x4E0B;&#x65F6;&#x9000;&#x51FA;
&apos;-acodec codec_name&apos;  &#x5F3A;&#x5236;&#x6307;&#x5B9A;&#x97F3;&#x9891;&#x89E3;&#x7801;&#x5668;&#x4E3A; &quot;codec_name&quot;
&apos;-vcodec codec_name&apos;  &#x5F3A;&#x5236;&#x6307;&#x5B9A;&#x89C6;&#x9891;&#x89E3;&#x7801;&#x5668;&#x4E3A; &quot;codec_name&quot;
&apos;-scodec codec_name&apos;  &#x5F3A;&#x5236;&#x6307;&#x5B9A;&#x5B57;&#x5E55;&#x89E3;&#x7801;&#x5668;&#x4E3A; &quot;codec_name&quot;
</code></pre><h3 id="&#x4E00;&#x4E9B;&#x5FEB;&#x6377;&#x952E;"><a name="&#x4E00;&#x4E9B;&#x5FEB;&#x6377;&#x952E;" class="plugin-anchor" href="#&#x4E00;&#x4E9B;&#x5FEB;&#x6377;&#x952E;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E00;&#x4E9B;&#x5FEB;&#x6377;&#x952E;</h3>
<pre><code>&apos;q, ESC&apos;            &#x9000;&#x51FA;
&apos;f&apos;                 &#x5168;&#x5C4F;
&apos;p, SPC&apos;            &#x6682;&#x505C;
&apos;w&apos;                 &#x5207;&#x6362;&#x663E;&#x793A;&#x6A21;&#x5F0F;(&#x89C6;&#x9891;/&#x97F3;&#x9891;&#x6CE2;&#x5F62;/&#x97F3;&#x9891;&#x9891;&#x5E26;)
&apos;s&apos;                 &#x6B65;&#x8FDB;&#x5230;&#x4E0B;&#x4E00;&#x5E27;
&apos;left/right&apos;        &#x5FEB;&#x9000;/&#x5FEB;&#x8FDB; 10 &#x79D2;
&apos;down/up&apos;           &#x5FEB;&#x9000;/&#x5FEB;&#x8FDB; 1 &#x5206;&#x949F;
&apos;page down/page up&apos; &#x8DF3;&#x8F6C;&#x5230;&#x524D;&#x4E00;&#x7AE0;/&#x4E0B;&#x4E00;&#x7AE0;(&#x5982;&#x679C;&#x6CA1;&#x6709;&#x7AE0;&#x8282;&#xFF0C;&#x5FEB;&#x9000;/&#x5FEB;&#x8FDB; 10 &#x5206;&#x949F;)
&apos;mouse click&apos;       &#x8DF3;&#x8F6C;&#x5230;&#x9F20;&#x6807;&#x70B9;&#x51FB;&#x7684;&#x4F4D;&#x7F6E;(&#x6839;&#x636E;&#x9F20;&#x6807;&#x5728;&#x663E;&#x793A;&#x7A97;&#x53E3;&#x70B9;&#x51FB;&#x7684;&#x4F4D;&#x7F6E;&#x8BA1;&#x7B97;&#x767E;&#x5206;&#x6BD4;)
</code></pre><h2 id="ffprobe"><a name="ffprobe" class="plugin-anchor" href="#ffprobe"><i class="fa fa-link" aria-hidden="true"></i></a>ffprobe</h2>
<ul>
<li>ffprobe &#x662F; ffmpeg &#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#x4E2D;&#x662F;&#x7528;&#x6765;&#x67E5;&#x770B;&#x5A92;&#x4F53;&#x6587;&#x4EF6;&#x683C;&#x5F0F;&#x7684;&#x5DE5;&#x5177;</li>
</ul>
<pre><code class="lang-shell">xcq@xcq-HP-Pavilion-Notebook:~/&#x684C;&#x9762;$ ffprobe test.mp4
ffprobe version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &apos;test.mp4&apos;:
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2018-07-16T15:13:16.000000Z
  Duration: 00:08:46.07, start: 0.000000, bitrate: 2577 kb/s
  # &#x8BE5;&#x89C6;&#x9891;&#x6587;&#x4EF6;&#x7684;&#x65F6;&#x957F;&#x662F; 8 &#x5206; 46 &#x79D2; 7 &#x6BEB;&#x79D2;&#xFF0C;&#x5F00;&#x59CB;&#x64AD;&#x653E;&#x65F6;&#x95F4;&#x662F; 0&#xFF0C;&#x6574;&#x4E2A;&#x6587;&#x4EF6;&#x7684;&#x6BD4;&#x7279;&#x7387;&#x662F; 2577 Kbit/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2446 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    # &#x7B2C;&#x4E00;&#x4E2A;&#x6D41;&#x662F;&#x89C6;&#x9891;&#x6D41;&#xFF0C;&#x7F16;&#x7801;&#x683C;&#x5F0F;&#x662F; h264 &#x683C;&#x5F0F;( &#x5C01;&#x88C5;&#x683C;&#x5F0F;&#x4E3A; AVC1 )&#xFF0C;&#x6BCF;&#x4E00;&#x5E27;&#x7684;&#x6570;&#x636E;&#x8868;&#x793A;&#x4E3A; yuv420p&#xFF0C;&#x5206;&#x8FA8;&#x7387;&#x4E3A; 1920 &#xD7; 1080&#xFF0C;&#x8FD9;&#x8DEF;&#x6D41;&#x7684;&#x6BD4;&#x7279;&#x7387;&#x4E3A;2466 Kbit/s&#xFF0C;&#x5E27;&#x7387;&#x4E3A;&#x6BCF;&#x79D2;&#x949F; 24 &#x5E27;
    Metadata:
      creation_time   : 2018-07-16T15:13:16.000000Z
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
    # &#x7B2C;&#x4E8C;&#x4E2A;&#x6D41;&#x662F;&#x97F3;&#x9891;&#x6D41;&#xFF0C;&#x7F16;&#x7801;&#x65B9;&#x5F0F;&#x4E3A; ACC&#xFF08; &#x5C01;&#x88C5;&#x683C;&#x5F0F;&#x4E3A; MP4A &#xFF09;&#xFF0C;&#x5E76;&#x4E14;&#x91C7;&#x7528;&#x7684; Profile&#xFF08; &#x914D;&#x7F6E;&#x6587;&#x4EF6; &#xFF09;&#x662F; LC &#x89C4;&#x683C;&#xFF0C;&#x91C7;&#x6837;&#x7387;&#x662F; 44.1 KHz&#xFF0C;&#x58F0;&#x9053;&#x662F;&#x7ACB;&#x4F53;&#x58F0;&#xFF0C;&#x8FD9;&#x8DEF;&#x6D41;&#x7684;&#x6BD4;&#x7279;&#x7387; 92 Kbit/s
    Metadata:
      creation_time   : 2018-07-16T14:53:06.000000Z
</code></pre>
<p>&#x989C;&#x8272;&#x7F16;&#x7801;&#xFF1A;&#x5176;&#x4E2D;YUV420&#x662F;&#x89C6;&#x9891;&#x4E2D;&#x901A;&#x5E38;&#x91C7;&#x7528;&#x7684;&#x989C;&#x8272;&#x7F16;&#x7801;&#x65B9;&#x5F0F;&#xFF0C;Y&#x8868;&#x793A;&#x4EAE;&#x5EA6;&#xFF0C;&#x800C;U&#xFF0C;V&#x5219;&#x4E0E;&#x989C;&#x8272;&#x76F8;&#x5173;&#xFF0C;&#x800C;420&#x5219;&#x5206;&#x522B;&#x5BF9;&#x5E94;&#x7740;&#x5B58;&#x50A8;&#x76F8;&#x5E94;&#x5206;&#x91CF;&#x6240;&#x5360;&#x7528;&#x7684;&#x6BD4;&#x7279;&#x6570;&#x4E4B;&#x6BD4;&#x3002;&#x5176;&#x5B9E;&#x91C7;&#x7528;&#x8FD9;&#x79CD;&#x7F16;&#x7801;&#x65B9;&#x5F0F;&#x5C31;&#x662F;&#x4E3A;&#x4E86;&#x65E9;&#x671F;&#x5F69;&#x8272;&#x7535;&#x89C6;&#x4E0E;&#x9ED1;&#x767D;&#x7535;&#x89C6;&#x80FD;&#x66F4;&#x597D;&#x7684;&#x76F8;&#x5BB9;</p>
<p>tbn is the time base in AVStream that has come from the container, I
think. It is used for all AVStream time stamps.</p>
<p>tbc is the time base in AVCodecContext for the codec used for a
particular stream. It is used for all AVCodecContext and related time
stamps.</p>
<p>tbr is guessed from the video stream and is the value users want to see
when they look for the video frame rate, except sometimes it is twice
what one would expect because of field rate versus frame rate.</p>
<p>fps &#x81EA;&#x7136;&#x7684;&#x662F; frame per second&#xFF0C;&#x5C31;&#x662F;&#x5E27;&#x7387;&#x4E86;&#x3002;</p>
<p>&#x6240;&#x4EE5;tbn&#x548C;tbc&#x5E94;&#x8BE5;&#x90FD;&#x662F;&#x5728;&#x76F8;&#x5E94;&#x5C42;&#x4E0A;&#x7684;&#x65F6;&#x95F4;&#x5355;&#x5143;&#xFF0C;&#x6BD4;&#x5982;tbn=2997&#x5C31;&#x76F8;&#x5F53;&#x4E8E;&#x5728;&#x89C6;&#x9891;&#x6D41;&#x5C42;&#x628A;1s&#x7684;&#x65F6;&#x95F4;&#x5206;&#x6210;&#x4E86;2997&#x4E2A;&#x65F6;&#x95F4;&#x5355;&#x5143;&#xFF0C;&#x5982;&#x6B64;&#x7CBE;&#x7EC6;&#x53EF;&#x4EE5;&#x66F4;&#x597D;&#x7684;&#x4E0E;&#x5176;&#x4ED6;&#x6D41;&#x6BD4;&#x5982;&#x97F3;&#x9891;&#x6D41;&#x540C;&#x6B65;&#xFF0C;&#x5BF9;&#x5E94;&#x7740;fps=29.97&#x5C31;&#x8868;&#x793A;&#x6BCF;100&#x4E2A;&#x65F6;&#x95F4;&#x5355;&#x5143;&#x4E2D;&#x6709;&#x4E00;&#x5E27;&#x3002;</p>
<p>&#x65F6;&#x95F4;&#x540C;&#x6B65;&#x65B9;&#x5F0F;&#xFF1A;
&#x95EE;&#x9898;&#x6765;&#x4E86;&#xFF1A;fps=29.97&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x5C0F;&#x6570;&#x554A;&#xFF0C;&#x6211;&#x5982;&#x679C;&#x76F4;&#x63A5;&#x5229;&#x7528;&#x516C;&#x5F0F; frame number = time * fps &#x5F97;&#x5230;&#x4E86;&#x4E5F;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x6574;&#x6570;&#x554A;&#xFF0C;&#x800C;&#x5E27;&#x53F7;&#x5E94;&#x8BE5;&#x662F;&#x4E00;&#x4E2A;&#x6574;&#x6570;&#x624D;&#x5BF9;&#x3002;</p>
<p>&#x9996;&#x5148;&#xFF0C;29.97f/s&#x8FD9;&#x4E2A;&#x53D8;&#x6001;&#x7684;&#x6570;&#x662F;&#x5982;&#x4F55;&#x5F97;&#x5230;&#x7684;&#xFF1F;&#x8FD9;&#x8D77;&#x6E90;&#x4E8E;&#x65E9;&#x671F;&#x7684;NTSC&#x7535;&#x89C6;&#x5236;&#x5F0F;&#xFF0C;&#x800C;&#x73B0;&#x4EE3;&#x7684;&#x6570;&#x5B57;&#x7F16;&#x7801;&#x53EA;&#x662F;&#x4E3A;&#x4E86;&#x517C;&#x5BB9;&#x800C;&#x6CBF;&#x7528;&#x4E86;&#x5B83;&#x7684;&#x6807;&#x51C6;&#x3002;&#x5176;&#x5B9E;&#x5728;&#x6807;&#x51C6;&#x5236;&#x5B9A; &#x65F6;&#xFF0C;NTSC&#x91C7;&#x7528;&#x7684;&#x662F;30f/s&#x7684;&#x5E27;&#x7387;&#xFF0C;&#x53EA;&#x662F;&#x540E;&#x6765;&#x70BA;&#x4E86;&#x6D88;&#x9664;&#x7531;&#x5F69;&#x8272;&#x4FE1;&#x53F7;&#x53CA;&#x4F34;&#x97F3;&#x4FE1;&#x53F7;&#x6240;&#x7522;&#x751F;&#x7684;&#x5716;&#x50CF;&#x5E72;&#x64FE;&#xFF0C;&#x6BCF;&#x79D2;&#x5E40;&#x5E45;&#x7531;30&#x5E40;&#x7A0D;&#x5FAE;&#x4E0B;&#x8ABF;&#x81F3;29.97&#x5E40;&#xFF0C;&#x540C;&#x6642;&#x7DDA;&#x983B;&#x7531; 15750Hz&#x7A0D;&#x5FAE;&#x4E0B;&#x964D;&#x81F3;15734.26Hz</p>
<p>&#x7136;&#x540E;&#xFF0C;&#x5E26;&#x5C0F;&#x6570;&#x70B9;&#x7684;&#x5E27;&#x7387;&#x5982;&#x4F55;&#x5B9E;&#x73B0;&#x5462;&#xFF0C;&#x663E;&#x7136;&#x6BCF;&#x4E00;&#x79D2;&#x4E0D;&#x53EF;&#x80FD;&#x663E;&#x793A;&#x76F8;&#x540C;&#x4E2A;&#x6570;&#x7684;&#x5E27;&#x3002;&#x5B9E;&#x9645;&#x4E0A;&#x5B58;&#x5728;&#x7740;&#x53EB;&#x505A;SMPTE Non-Drop-Frame&#x548C;SMPTE Drop-Frame&#x7684;&#x65F6;&#x95F4;&#x540C;&#x6B65;&#x6807;&#x51C6;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#x5728;&#x67D0;&#x4E9B;&#x65F6;&#x5019;&#xFF0C;&#x4F1A;&#x901A;&#x8FC7;&#x4E22;&#x6389;&#x4E00;&#x4E9B;&#x5E27;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x5C06;&#x65F6;&#x95F4;&#x540C;&#x6B65;&#x4E0A;&#x3002;</p>
<p>&#x6BD4;&#x5982;&#x521A;&#x624D;&#x63D0;&#x5230;&#x7684;29.97&#x5E27;&#x7387;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x8BA1;&#x7B97;&#xFF1A;29.97 f/sec = 1798.2 f/min = 107892 f/hour;
&#x5BF9;&#x4E8E;30f/s&#x7684;&#x5E27;&#x7387;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x8BA1;&#x7B97;&#xFF1A; 30 f/s = 1800 f/s = 108000 f/hour;</p>
<p>&#x8FD9;&#x6837;&#xFF0C;&#x5982;&#x679C;&#x5229;&#x7528;&#x6BCF;&#x79D2;30&#x5E27;&#x7684;&#x901F;&#x5EA6;&#x6765;&#x91C7;&#x96C6;&#x89C6;&#x9891;&#xFF0C;&#x800C;&#x7528;29.97f/s&#x7684;&#x901F;&#x7387;&#x6765;&#x64AD;&#x653E;&#x89C6;&#x9891;&#xFF0C;&#x6BCF;&#x4E2A;&#x5C0F;&#x65F6;&#x5C31;&#x5C11;&#x64AD;&#x653E;&#x4E86;108&#x5E27;&#xFF0C;&#x8FD9;&#x6837;&#x64AD;&#x653E;&#x65F6;&#x95F4;&#x4F1A;&#x6BD4;&#x771F;&#x5B9E;&#x65F6;&#x95F4;&#x53D8;&#x6162;&#x3002;&#x4E3A;&#x4E86;&#x89E3;&#x51B3;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;SMPTE 30 Drop-Frame&#x5C31;&#x91C7;&#x53D6;&#x4E86;&#x4E22;&#x6389;&#x8FD9;108&#x5E27;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x5177;&#x4F53;&#x7B56;&#x7565;&#x662F;&#x6BCF;1&#x5206;&#x949F;&#x4E22;&#x4E24;&#x5E27;&#xFF0C;&#x5982;&#x679C;&#x662F;&#x7B2C;10&#x5206;&#x949F;&#x5219;&#x4E0D;&#x4E22;&#xFF0C;&#x6240;&#x4EE5;&#x6BCF;&#x5C0F;&#x65F6;&#x4E22;&#x6389;&#x7684;&#x5E27;&#x6570;&#x662F;&#xFF1A;2&#xD7;60 &#x2013; 2&#xD7;6 = 108 &#x5E27;&#x3002;&#x66F4;&#x5177;&#x4F53;&#x7684;&#x4FE1;&#x606F;&#xFF0C;</p>
<p>25 tbr&#x4EE3;&#x8868;&#x5E27;&#x7387;&#xFF1B;1200k tbn&#x4EE3;&#x8868;&#x6587;&#x4EF6;&#x5C42;&#xFF08;st&#xFF09;&#x7684;&#x65F6;&#x95F4;&#x7CBE;&#x5EA6;&#xFF0C;&#x5373;1S=1200k&#xFF0C;&#x548C;duration&#x76F8;&#x5173;&#xFF1B;50 tbc&#x4EE3;&#x8868;&#x89C6;&#x9891;&#x5C42;&#xFF08;st-&gt;codec&#xFF09;&#x7684;&#x65F6;&#x95F4;&#x7CBE;&#x5EA6;&#xFF0C;&#x5373;1S=50&#xFF0C;&#x548C;strem-&gt;duration&#x548C;&#x65F6;&#x95F4;&#x6233;&#x76F8;&#x5173;&#x3002;</p>
<p>25 tbr&#x4EE3;&#x8868;&#x5E27;&#x7387;&#xFF1B;
90k tbn&#x4EE3;&#x8868;&#x6587;&#x4EF6;&#x5C42;&#xFF08;st&#xFF09;&#x7684;&#x65F6;&#x95F4;&#x7CBE;&#x5EA6;&#xFF0C;&#x5373;1S=1200k&#xFF0C;&#x548C;duration&#x76F8;&#x5173;&#xFF1B;
50   tbc&#x4EE3;&#x8868;&#x89C6;&#x9891;&#x5C42;&#xFF08;st-&gt;codec&#xFF09;&#x7684;&#x65F6;&#x95F4;&#x7CBE;&#x5EA6;&#xFF0C;&#x5373;1S=50&#xFF0C;&#x548C;strem-&gt;duration&#x548C;&#x65F6;&#x95F4;&#x6233;&#x76F8;&#x5173;&#x3002;</p>
<p><a href="https://www.jianshu.com/p/bfec3e6d3ec8" target="_blank">https://www.jianshu.com/p/bfec3e6d3ec8</a></p>
<p><a href="https://www.jianshu.com/p/5b78a91f1091" target="_blank">https://www.jianshu.com/p/5b78a91f1091</a></p>
<p>&#x663E;&#x793A;&#x5E27;&#x4FE1;&#x606F;</p>
<pre><code class="lang-shell">ffprobe -show_frames test.mp4
</code></pre>
<p>&#x67E5;&#x770B;&#x5305;&#x4FE1;&#x606F;</p>
<pre><code class="lang-shell">ffprobe -show_packets test.mp4
</code></pre>
<h2 id="&#x53C2;&#x8003;"><a name="&#x53C2;&#x8003;" class="plugin-anchor" href="#&#x53C2;&#x8003;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53C2;&#x8003;</h2>
<p><a href="https://www.cnblogs.com/renhui/category/1165051.html" target="_blank">20 &#x7BC7; ffmpeg &#x5B66;&#x4E60;</a>
<a href="https://blog.csdn.net/leixiaohua1020/article/details/15811977" target="_blank"> &#x7CFB;&#x7EDF;&#x5B66;&#x4E60; </a></p>
<footer class="page-footer-ex"> <span class="page-footer-ex-copyright"> <a href="https://github.com/Xiechengqi" target="_blank">Xiechengqi</a> </span> &#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;&#xA0; <span class="page-footer-ex-footer-update"> <strong>&#x6700;&#x65B0;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;</strong> 2020-01-04 15:54:38 </span> </footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="bin目录详解.html" class="navigation navigation-prev " aria-label="Previous page: bin目录详解.md">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="trans命令.html" class="navigation navigation-next " aria-label="Next page: trans命令">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"ffmpeg学习","level":"1.4.17","depth":2,"next":{"title":"trans命令","level":"1.4.18","depth":2,"path":"Linux/trans命令.md","ref":"Linux/trans命令.md","articles":[]},"previous":{"title":"bin目录详解.md","level":"1.4.16","depth":2,"path":"Linux/bin目录详解.md","ref":"Linux/bin目录详解.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-livereload","-sharing","expandable-chapters","popup","pageview-count","code","back-to-top-button","hide-element","github-buttons","github","splitter","search-pro","anchors","page-footer-ex","advanced-emoji","sharing-plus"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/Xiechengqi/LearningNotes"},"page-footer-ex":{"copyright":"[Xiechengqi](https://github.com/Xiechengqi)","markdown":true,"update_format":"YYYY-MM-DD HH:mm:ss","update_label":"<strong>最新修订时间：</strong>"},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"hide-element":{"elements":[".gitbook-link"]},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"pageview-count":{},"github-buttons":{"buttons":[{"user":"Xiechengqi","repo":"LearningNotes","type":"star","size":"small","count":true}]},"advanced-emoji":{"embedEmojis":false},"sharing":{"qq":false,"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"expandable-chapters":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"日常学习笔记","language":"zh-hans","gitbook":"*","description":"日常学习笔记"},"file":{"path":"Linux/ffmpeg详解.md","mtime":"2020-01-04T07:54:38.964Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-28T02:57:41.582Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

